package cn.org.chiss.rhin._2015.document;

import cn.org.chiss.rhin._2015.base.document.DocumentEntryMessage;
import cn.org.chiss.rhin._2015.base.document.SubmissionSetMessage;
import cn.org.chiss.rhin._2015.base.object.RegObjectMessage;
import lombok.Data;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * @Description: 文档条目
 * @Author: lww
 * @Date: 2022/7/14 14:35
 */

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SubmitObjectList", propOrder = {
        "submissionSetOrFolderOrDocumentEntryOrAssociation"
})
@Data
@XmlSeeAlso({SubmitObjectList.class})
@XmlRootElement
public class SubmitObjectList {

    @XmlElements({
            @XmlElement(name = "submissionSet", type = SubmissionSetMessage.class),
            @XmlElement(name = "documentEntry", type = DocumentEntryMessage.class)
    })
    protected List<RegObjectMessage> submissionSetOrFolderOrDocumentEntryOrAssociation;
}
